import { defineAsyncComponent } from 'vue'

export default [
  {
    path: '/communication',
    name: 'CommunicationCenter',
    component: defineAsyncComponent(() => import('../views/communication/CommunicationCenter.vue')),
    meta: {
      title: '交流中心',
      requiresAuth: true
    }
  },
  {
    path: '/communication/question/:id',
    name: 'QuestionDetail',
    component: defineAsyncComponent(() => import('../views/communication/QuestionDetail.vue')),
    meta: {
      title: '问题详情',
      requiresAuth: true
    }
  },
  {
    path: '/communication/my-questions',
    name: 'MyQuestions',
    component: defineAsyncComponent(() => import('../views/communication/MyQuestions.vue')),
    meta: {
      title: '我的问题',
      requiresAuth: true
    }
  },
  {
    path: '/communication/leaderboard',
    name: 'Leaderboard',
    component: defineAsyncComponent(() => import('../views/communication/Leaderboard.vue')),
    meta: {
      title: '排行榜',
      requiresAuth: true
    }
  }
]